package com.sdb.outpatient.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sdb.common.annotation.Excel;
import com.sdb.common.core.domain.BaseEntity;

/**
 * 病人管理对象 patients
 * 
 * @author yyh
 * @date 2024-11-19
 */
public class Patients extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 病人id */
    private Long patientId;

    /** 病人姓名 */
    @Excel(name = "病人姓名")
    private String patientName;

    /** 病人证件号 */
    @Excel(name = "病人证件号")
    private String patientCard;

    /** 病人年龄 */
    @Excel(name = "病人年龄")
    private Long patientAge;

    /** 病人性别 */
    @Excel(name = "病人性别")
    private String patientGender;

    /** 病人电话 */
    private String patientPhone;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date patientDate;

    /** 病人家庭地址 */
    private String patientAddress;

    public void setPatientId(Long patientId) 
    {
        this.patientId = patientId;
    }

    public Long getPatientId() 
    {
        return patientId;
    }
    public void setPatientName(String patientName) 
    {
        this.patientName = patientName;
    }

    public String getPatientName() 
    {
        return patientName;
    }
    public void setPatientCard(String patientCard) 
    {
        this.patientCard = patientCard;
    }

    public String getPatientCard() 
    {
        return patientCard;
    }
    public void setPatientAge(Long patientAge) 
    {
        this.patientAge = patientAge;
    }

    public Long getPatientAge() 
    {
        return patientAge;
    }
    public void setPatientGender(String patientGender) 
    {
        this.patientGender = patientGender;
    }

    public String getPatientGender() 
    {
        return patientGender;
    }
    public void setPatientPhone(String patientPhone) 
    {
        this.patientPhone = patientPhone;
    }

    public String getPatientPhone() 
    {
        return patientPhone;
    }
    public void setPatientDate(Date patientDate) 
    {
        this.patientDate = patientDate;
    }

    public Date getPatientDate() 
    {
        return patientDate;
    }
    public void setPatientAddress(String patientAddress) 
    {
        this.patientAddress = patientAddress;
    }

    public String getPatientAddress() 
    {
        return patientAddress;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("patientId", getPatientId())
            .append("patientName", getPatientName())
            .append("patientCard", getPatientCard())
            .append("patientAge", getPatientAge())
            .append("patientGender", getPatientGender())
            .append("patientPhone", getPatientPhone())
            .append("patientDate", getPatientDate())
            .append("patientAddress", getPatientAddress())
            .toString();
    }
}
